package cwinsor.com.leaf_raking;

import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import cwinsor.com.leaf_raking.Person.Format;

public class FileTypeSchedulePreferencesRaker extends FileTypeSchedulePreferences {

	// name
	public String getName() { return "FileTypeSchedulePreferencesRaker"; }


	@Override
	protected void doFindPersons(String firstName, String lastName,
			PrsnList personList, ArrayList<Person> matchingPersons) {

		// for rakers
		// find based on first initial, last name
		personList.findPerson2(firstName, lastName, matchingPersons);
		
		// for rakers
		// confirm there is at exactly one match
		if (matchingPersons.size() != 1) {
			Msg.fatal(dS + ": we have a problem here - there were "
					+ matchingPersons.size() + " persons matching "
					+ " \"" + firstName
					+ "\" \"" + lastName
					+ "\"");
		}
		
		
	}


	// debug
	String dS = this.getClass().getSimpleName();
}